<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Post extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		
	}

	public function form()
	{
		$this->load->view('post/form');
	}
	
	public function create()
	{
		$post_new = $this->session->userdata('post_new');
		if( $post_new )
			$this->session->unset_userdata('post_new');
		else
			$this->session->set_userdata(array(
					'post_new' => true
			));
		
		$this->load->view('post/result');
	}
}